<?php
// +----------------------------------------------------------------------
// | najing [ 通用后台管理系统 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2020 http://www.najingquan.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: 救火队队长
// +----------------------------------------------------------------------

namespace  app\index\controller;

use app\common\controller\IndexController;

use think\App;
use think\facade\Db;
use think\facade\View;

/**
 * 会员管理
 * Class User
 * @package app\admin\controller
 */
class Contact extends  IndexController
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        View::assign([
            'menu_class' => 'contact',
        ]);
    }

    public function index()
    {
        $list = Db::name('setting')->where(['key' => 'contact_us'])->find();
        View::assign([
            'desc' => $list['desc']
        ]);
        return View::fetch();
    }
}
